<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScintborganismEditDlg" widgetVar="ScintborganismEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScintborganismTitle}">

            <h:form id="ScintborganismEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scintborganismController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScintborganismLabel_scintborganismid}" for="scintborganismid" />
                        <h:outputText id="scintborganismid" value="#{scintborganismController.selected.scintborganismid}" />

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{scintborganismController.selected.nombre}" title="#{myBundle.EditScintborganismTitle_nombre}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_reprlegal}" for="reprlegal" />
                        <p:inputText id="reprlegal" value="#{scintborganismController.selected.reprlegal}" title="#{myBundle.EditScintborganismTitle_reprlegal}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_reprlegal}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_ruc}" for="ruc" />
                        <p:inputText id="ruc" value="#{scintborganismController.selected.ruc}" title="#{myBundle.EditScintborganismTitle_ruc}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_ruc}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{scintborganismController.selected.direccion}" title="#{myBundle.EditScintborganismTitle_direccion}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_direccion}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_telefono1}" for="telefono1" />
                        <p:inputText id="telefono1" value="#{scintborganismController.selected.telefono1}" title="#{myBundle.EditScintborganismTitle_telefono1}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_telefono1}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_telefono2}" for="telefono2" />
                        <p:inputText id="telefono2" value="#{scintborganismController.selected.telefono2}" title="#{myBundle.EditScintborganismTitle_telefono2}" />

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_telefono3}" for="telefono3" />
                        <p:inputText id="telefono3" value="#{scintborganismController.selected.telefono3}" title="#{myBundle.EditScintborganismTitle_telefono3}" />

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_fax}" for="fax" />
                        <p:inputText id="fax" value="#{scintborganismController.selected.fax}" title="#{myBundle.EditScintborganismTitle_fax}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_fax}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_web}" for="web" />
                        <p:inputText id="web" value="#{scintborganismController.selected.web}" title="#{myBundle.EditScintborganismTitle_web}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_web}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_latitud}" for="latitud" />
                        <p:inputText id="latitud" value="#{scintborganismController.selected.latitud}" title="#{myBundle.EditScintborganismTitle_latitud}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_latitud}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_puntocardlat}" for="puntocardlat" />
                        <p:inputText id="puntocardlat" value="#{scintborganismController.selected.puntocardlat}" title="#{myBundle.EditScintborganismTitle_puntocardlat}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_puntocardlat}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_longitud}" for="longitud" />
                        <p:inputText id="longitud" value="#{scintborganismController.selected.longitud}" title="#{myBundle.EditScintborganismTitle_longitud}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_longitud}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_puntocardlon}" for="puntocardlon" />
                        <p:inputText id="puntocardlon" value="#{scintborganismController.selected.puntocardlon}" title="#{myBundle.EditScintborganismTitle_puntocardlon}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_puntocardlon}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_evaluacion}" for="evaluacion" />
                        <p:selectBooleanCheckbox id="evaluacion" value="#{scintborganismController.selected.evaluacion}" title="#{myBundle.EditScintborganismTitle_evaluacion}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_evaluacion}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_email}" for="email" />
                        <p:inputText id="email" value="#{scintborganismController.selected.email}" title="#{myBundle.EditScintborganismTitle_email}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_email}"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{scintborganismController.selected.fecharegistro}" title="#{myBundle.EditScintborganismTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scintborganismController.selected.observaciones}" title="#{myBundle.EditScintborganismTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditScintborganismLabel_scintbtiporganid}" for="scintbtiporganid" />
                        <p:selectOneMenu id="scintbtiporganid" value="#{scintborganismController.selected.scintbtiporganid}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_scintbtiporganid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scintbtiporganController.items}"
                                           var="scintbtiporganidItem"
                                           itemValue="#{scintbtiporganidItem}"
                                           itemLabel="#{scintbtiporganidItem.scintbtiporganid.toString()}"
                                           />
                            <f:converter binding="#{scintbtiporganConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scintborganismController.save}" value="#{myBundle.Save}" update="display,:ScintborganismListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScintborganismEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScintborganismEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
